package com.jinken.controller;

import com.jinken.common.result.BaseResult;
import com.jinken.request.BusinessRequest;
import com.jinken.service.IBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BusinessController {


    @Autowired
    private IBusinessService businessService;


    @PostMapping("/business/buy")
    public BaseResult buy(@RequestBody BusinessRequest request){
        return businessService.handlerBusiness(request);
    }
}
